/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.strategy.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.behavioral.strategy.Context;
import za.ac.cput.DesignPatterns.behavioral.strategy.HikeStrategy;
import za.ac.cput.DesignPatterns.behavioral.strategy.SkyStrategy;
import za.ac.cput.DesignPatterns.behavioral.strategy.Strategy;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class StrategyConf {
    int tempretureinF; 
    Strategy strategy=new SkyStrategy() ;
    @Bean 
    public Context context(){
    return new Context(tempretureinF,strategy);
    } 
    @Bean 
    public SkyStrategy skyStrategy(){
    return new SkyStrategy();
    }
    @Bean 
    public HikeStrategy hikeStrategy(){
    return new HikeStrategy();
    }
    
    
}
